import unittest
from config import BASE_DIR
from htmltestreport import HTMLTestReport
from common.init_log import init_log_config

if __name__ == '__main__':
    init_log_config(BASE_DIR + '/log/ihrm.log')
    sutie = unittest.defaultTestLoader.discover(BASE_DIR + '/scripts', 'test*')
    report = HTMLTestReport(BASE_DIR + '/report/report.html', title='ihrm测试报告')
    report.run(sutie)
